<?php
class IndexAction extends BaseAction {

	public function _initialize() {
        	parent::_initialize();

    }
	public function index() {
		$this->assign('_header_tab_on_index',1);
		if(!empty($_GET['q'])){
			$q = explode('_',$_GET['q']);
		}
		$index = empty($_GET['index'])?'All':$_GET['index'];
		$map['corp_status'] = 1;
		$order = 'corp_addtime asc';
    	$this->assign(M('CorpBase')->where($map)->order($order)->findPage($this->_opt['listpagecount']));
		$this->assign('index_active',$index);
		$this->display();
    }

}
